package com.eazy.lkv2.web.service.activity.impl;

import com.eazy.lkv2.web.entity.ActivityUser;
import com.eazy.lkv2.web.entity.User;
import com.eazy.lkv2.web.service.activity.ActivityUserService;
import com.rework.joss.persistence.convention.BaseDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hpb on 2018/5/13.
 */
@Service
public class ActivityUserServiceImpl extends BaseDao<ActivityUser,Integer> implements ActivityUserService {
    @Override
    public Integer selectUserCountByActivityId(Integer activityId) {
        return sqlSessionTemplate.selectOne(getMapperMethodId("selectUserCountByActivityId"));
    }

    @Override
    public List<User> selectUserListByActivityId(Integer activityId) {
        return sqlSessionTemplate.selectList(getMapperMethodId("selectUserListByActivityId"));
    }
}
